﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;

namespace Sector7.Medical.EntityType
{
    /// <summary>
    /// 电子病历实体类
    /// </summary>
    [Serializable()]
    [DataContract]
    public class M7_MedicalRecord
    {
        #region Accessor
        /// <summary>
        /// 获取或设置电子病历记录编号
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public long EmrId { get; set; }

        /// <summary>
        /// 获取或设置个人唯一编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string CitizenId { get; set; }

        /// <summary>
        /// 获取或设置创建时间
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 获取或设置更新时间
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 获取或设置状态
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public int Status { get; set; }

        /// <summary>
        /// 获取或设置备注
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string Remarks { get; set; }

        /// <summary>
        /// 获取或设置主要诊断编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string MajorDiagnosisId { get; set; }

        /// <summary>
        /// 获取或设置次要诊断编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string MinorDiagnosisId { get; set; }

        /// <summary>
        /// 获取或设置诊断依据编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string DiagnosticBasisId { get; set; }

        /// <summary>
        /// 获取或设置诊断状态编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string DiagnosticStatusId { get; set; }

        /// <summary>
        /// 获取或设置现病史
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string PresentHistory { get; set; }

        /// <summary>
        /// 获取或设置既往史
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string PreviousHistory { get; set; }

        /// <summary>
        /// 获取或设置科室编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public int DeptId { get; set; }

        /// <summary>
        /// 获取或设置医生编码
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public long DoctorId { get; set; }

        /// <summary>
        /// 获取或设置主诉
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string MainSuit { get; set; }

        /// <summary>
        /// 获取和设置处理信息
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string Process { get; set; }

        /// <summary>
        /// 获取和设置查体信息
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string Examination { get; set; }
        #endregion
    }
}
